.filter {
  width: 210px;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #F7F8FC;
  border-radius: 4px;
  z-index: 100;
  transition: width 0.3s ease;
  .filter-item {
    border: 1px solid transparent;
  }
  .filter-item-active {
    border-color:  red;
    border-radius: 4px;
  }
}

.filter {
  :global {
    .ant-btn {
      height: 28px;
      font-size: 12px;
      font-weight: 400;
      letter-spacing: 0px;
    }

    .ant-input-affix-wrapper {
      padding: 4px 0;
    }
    .ant-checkbox-wrapper,
    .ant-radio-wrapper {
      color: var(--color-text);
      font-size: 12px !important;
    }

    .ant-form-item-control-input {
        min-height: 0 !important;
    }
    .ant-form-item{
      margin-bottom: 0 !important;
    }
    .ant-collapse{
      margin-bottom: 6px;
    }
    .ant-picker-input > input {
      font-size: 12px;
      height: 24px;
    }
  }
}

.filter-expand-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  left: -16px;
  width: 16px;
  height: 40px;
  opacity: 1;
  border-radius: 0px 4px 4px 0px;
  background: #FFFFFF;
  box-shadow: 0px -1px 2px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-collapse-btn {
  font-size: 16px;
  margin-left: auto;
  cursor: pointer;
}

.expand {
  width: 210px;
}

.collapse {
  width: 0;

  .filter-header,
  .filter-content,
  .filter-footer {
    padding: 0px;
  }
}

.filter-header {
  display: flex;
  align-items: center;
  column-gap: 6px;
  flex-shrink: 0;
  width: 100%;
  padding: 6px 12px;
  box-sizing: border-box;
  background: #ffffff;
  box-shadow: 0px -1px 2px rgba(0, 0, 0, 0.1);
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  overflow: hidden;
}

.filter-header .ant-btn {
  padding: 3px 10px;
  font-size: 12px;

  .anticon {
    width: 12px;
    height: 12px;
    margin-right: 4px;
  }

  .ant-btn>.anticon+span,
  .ant-btn>span+.anticon {
    margin-left: 0;
  }
}

.filter-content {
  overflow-y: scroll;
}

.filter-footer {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 6px 12px;
  box-shadow: 0px -1px 2px rgba(0, 0, 0, 0.1);
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  overflow: hidden;
}



.filter .filter_input {
  background: #F7F8FC;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0px;
  line-height: 18px;
  color: #333333;
  text-align: left;
  vertical-align: top;
  margin-bottom: 8px;
  padding: 5px 6px;
}
